FROM openjdk:8-jdk
LABEL maintainer=jinzhiyong
#docker run -e PARAMS="--server.port 9090"
ENV PARAMS="--server.port=6005"
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY target/*.jar /app.jar
EXPOSE 6005
#
ENTRYPOINT ["/bin/sh","-c","java -Dfile.encoding=utf8 -Djava.security.egd=file:/dev/./urandom -jar app.jar ${PARAMS}"]